package com.devops.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.devops.admin.model.DOSWebhookCustomInfo;
import com.devops.admin.po.DOSWebhookCustomInfoPo;
import com.devops.admin.vo.DOSWebhookCustomInfoVo;
import com.devops.admin.vo.DOSWebhookInfoVo;

import java.util.List;

/**
 * ClassName DOSWebhookCustomInfoService
 * Description TODO
 * Author heyabo
 * Date 2022/11/16 10:20
 **/
public interface DOSWebhookCustomInfoService extends IService<DOSWebhookCustomInfo> {

    /**
     * @Author heyabo
     * @Description 查询webhook的自定义信息
     * @Date 14:56 2022/11/17
     * @Param [id]
     * @return com.devops.admin.model.DOSWebhookCustomInfo
     **/
    DOSWebhookCustomInfoPo getWebhookCustomInfoByWebhookId(Integer id);

    List<DOSWebhookCustomInfoPo> getListByWebhookIds(List<Integer> webhookIds);

    /**
     * @Author heyabo
     * @Description 保存webhook的配置信息
     * @Date 16:59 2022/11/23
     * @Param [webhookCustomInfo]
     * @return boolean
     **/
    boolean saveWebhookCustomInfo(DOSWebhookCustomInfoVo webhookCustomInfo);

    /**
     * @Author heyabo
     * @Description 修改webhook的配置信息
     * @Date 17:12 2022/11/23
     * @Param [webhookCustomInfo]
     * @return boolean
     **/
    boolean updateWebhookCustomInfo(DOSWebhookCustomInfoVo webhookCustomInfo);

    /**
     * @Author heyabo
     * @Description 测试webhook的配置信息
     * @Date 15:13 2022/12/2
     * @Param [webhookInfoVo]
     * @return java.lang.String
     **/
    String testWebhookCustomInfo(DOSWebhookInfoVo webhookInfoVo);
}
